package com.haoshuang.zhouzhoubang.ui.adapter

import com.haoshuang.zhouzhoubang.databinding.ItemOrderScreenStatusBinding
import com.haoshuang.zhouzhoubang.model.bean.OrderScreenStatusBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 *  首页订单筛选adapter
 */
class OrderScreenStatusAdapter(data: MutableList<OrderScreenStatusBean>) :
    BaseBindingQuickAdapter<OrderScreenStatusBean, ItemOrderScreenStatusBinding>(data) {
    override fun onBindViewHolder(
        holder: BaseBindingHolder,
        position: Int,
        item: OrderScreenStatusBean?
    ) {
        holder.getViewBinding<ItemOrderScreenStatusBinding>().apply {
            root.text = item?.statusName
            root.isSelected = item?.isChecked == true
        }
    }

}
